package cn.wolfcode.anno;

import cn.wolfcode.constant.JobStrategy;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomJob {

    String cron() default "";

    int shardingTotalCount() default 1;

    String shardingItemParameters() default "";

    // 使用什么类型的Job
    JobStrategy jobStrategy() default JobStrategy.SIMPLE;
}
